package com.example.mvitest.mvi

data class MviViewState(
    val status: ActionStatus,
    val data :List<String> = emptyList()
)

sealed class MviViewEvent{
    data class ShowToast(val message:String):MviViewEvent()
}

sealed class ActionStatus{
    object LoadingSuccess:ActionStatus()
    object LoadingFinish:ActionStatus()
    object LoadingInit:ActionStatus()
}
sealed class ActionView{
    data class ItemClick(val item:String):ActionView()
    object OnRefresh:ActionView()
    object LoadData:ActionView()

}